package com.itheima.feign.client;

import com.itheima.feign.common.ResultInfo;
import com.itheima.feign.domain.Movie;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @Author fanYuLe
 * @Date 2023/3/25 15:07
 * @Blog blog.fanYuLe.net/996.mba
 * @Description:
 */
@Component
@FeignClient("movie-service")
public interface MovieClient {
    @GetMapping("/movie/list")
    List<Movie> list();
}
